package com.zyx.comment;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.zyx.comment.mapper") // 指定扫描路径
@EnableTransactionManagement // 关键注解：启用声明式事务管理
public class ThnCommentServer {
    public static void main(String[] args) {
        SpringApplication.run(ThnCommentServer.class, args);
    }
}